package top.hidoctor.auscultation.adapter;

import android.support.v7.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import top.hidoctor.auscultation.R;
import top.hidoctor.auscultation.bean.NewsBean;

public class NewsAdapter extends BaseQuickAdapter<NewsBean> {
    public NewsAdapter(int layoutResId, List<NewsBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, NewsBean item) {
        helper.setText(R.id.tv_content, item.getMessage());
    }
}
